class CreatePlaces < ActiveRecord::Migration
  def self.up
    create_table :places do |t|
      t.column :name,          :string
      t.column :nicename,      :string
      t.column :created_at,    :datetime
      t.column :updated_at,    :datetime
      t.column :address,       :string
      t.column :city,          :string
      t.column :state,         :string
      t.column :country_id,    :integer
      t.column :latitude,      :string
      t.column :longitude,     :string
      
      t.column :user_id,       :integer
    end
  end

  def self.down
    drop_table :places
  end
end
